package com.demo.batch.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

/**
 *
 * @author
 * @since
 */
@Component
@Slf4j
public class DemoProcessor implements ItemProcessor<String, String> {

  @Override
  public String process(String s) throws Exception {
    log.info(" ========= DemoProcessor execute ");
    String s8 = s.replace("4", "8");
    log.info(" ========= {} replace all 4 to 8: {}", s, s8);
    return s8;
  }
}
